package com.technology.javase;

public class title2 {
    public static void main(String[] args) {
        // 0/10 可以正常执行 没有抛出异常 所以 结果为 finally finished
        try {
            method(0);
        }catch (Exception e){
            System.out.println("exceptioninmain");
        }
        System.out.println("finished");

        int a = 4;
        String b = "4";
        String c = a +b;
        System.out.println(c);

    }
    public static int method(int i ) throws Exception {
        try {
            return i/10;
        }catch (Exception e){
            throw new Exception("Exception in a aMothed");
        }finally {
            System.out.println("finally");
        }
    }

}
